<?php 
  
class Getidcategory_Service_Getidcategory extends Phpfox_Service  
{ 
	public function __construct()
	{	
		$this->_sTable = 'phpfox_hoidap_category';
	}

    public function GetIDCat() 
    { 
		$id = $this->database()->select('category_name')
			->from('phpfox_hoidap_cauhoi', 'ch')
			->join('phpfox_hoidap_category', 'ca', 'ch.category_id = ca.category_id')
			->where('cauhoi_id >0')
			->limit('10,2')
			->execute('getSlaveRows');
		
		return $id;
    } 
} 
  
?> 
